/*
 * Copyright (c) 2013-2018 上海汇数数据. All rights reserved.
 * @(#) I18nAutoConfiguration.java 2018-08-06 12:43
 */

package cn.jh.common.core.support.spring;

import cn.jh.common.core.i18n.I18nMessage;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @author Fuchun
 * @since 1.0
 */
@Configuration
public class MatrixCoreAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(I18nMessage.class)
    public I18nMessage i18nMessage() {
        return new SpringI18nMessage();
    }
}
